<div id="arianne" class="span-24 last">
	> <?php echo link_to('Accueil','@homepage')?> > annonces <?php echo $sf_request->getParameter('title')?>
</div>

<div class="span-20" style="float:left">
	<h1><b>Liste des annonces de <?php echo $sf_request->getParameter('title')?></b></h1><br/>
	
	<table id="search_result" cellpadding="10" cellspacing="10">
		<tr>
                                    <th>Date de publication</th>
                                    <th>Photo</th>
                                    <th>Titre</th>
                                    <th>Ville</th>
		</tr>
		<?php 
                                    foreach ($aAds as $ads):
                                            echo "<tr>";
                                            echo "<td>Depuis le : " . $ads->getDateTimeObject('created_at')->format('d M Y H:m') . "</td>";
                                            
                                            echo "<td>"; 
                                            echo "<a href='" .  url_for('@adsDetail?subcat='. Doctrine_Inflector::urlize($ads->SubCategory->title). '&slug='.$ads->slug) . "' title='" . sfOutputEscaper::unescape($ads->title) . "'>";
                                            if( $ads->image_path1 != ''):
                                                    echo image_tag('/uploads/image_path1/' . $ads->image_path1, array("class"=>"img_ads_thumb shadow", "width"=>"120", "height"=>"100"));
                                            else:
                                                    echo image_tag('no_image.jpg', array("class"=>"img_ads_thumb shadow", "width"=>"120", "height"=>"100"));
                                            endif; 
                                            echo "</a>";
                                            echo "</td>";
                    
                                            echo "<td>" . sfOutputEscaper::unescape($ads->title) . "</td>";
                                            echo "<td>" . $ads->Town->title . "</td>";
                                            echo "</tr>";	
                                    endforeach;
		?>
	</table>
</div>

<div class="span-4 last pubright" >
<?php include_partial('static/adsence_big1') ?>
</div>

<div><?php include_partial('static/adsense_horz_728_90')?></div>